package cc.uncarbon.module.custom.entity;

import cc.uncarbon.framework.crud.entity.HelioBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 项目信息
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "item")
public class ItemEntity extends HelioBaseEntity<Long> {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "项目名称")
    @TableField(value = "name")
    private String name;

    @Schema(description = "项目缩略图URL")
    @TableField(value = "thumbnail")
    private String thumbnail;

    @Schema(description = "目标使用人群")
    @TableField(value = "target_audience")
    private String targetAudience;

    @Schema(description = "项目适用的身体部位")
    @TableField(value = "body_part")
    private String bodyPart;

    @Schema(description = "服务持续时长")
    @TableField(value = "service_duration")
    private String serviceDuration;

    @Schema(description = "项目详细描述")
    @TableField(value = "detail_description")
    private String detailDescription;

    @Schema(description = "当前售价")
    @TableField(value = "current_price")
    private BigDecimal currentPrice;

    @Schema(description = "会员专享价格")
    @TableField(value = "member_price")
    private BigDecimal memberPrice;

    @Schema(description = "疗程套餐价格")
    @TableField(value = "course_price")
    private BigDecimal coursePrice;

    @Schema(description = "商品原价")
    @TableField(value = "original_price")
    private BigDecimal originalPrice;

    @Schema(description = "项目页面浏览次数")
    @TableField(value = "view_count")
    private Integer viewCount;

    @Schema(description = "累计销售数量")
    @TableField(value = "sales_volume")
    private Integer salesVolume;

    @Schema(description = "列表排序序号")
    @TableField(value = "sort_order")
    private Integer sortOrder;

    @Schema(description = "项目状态：0=禁用，1=启用")
    @TableField(value = "status")
    private EnabledStatusEnum status;

    @Schema(description = "所属店铺ID")
    @TableField(value = "store_id")
    private Integer storeId;

    @Schema(description = "疗程数量")
    private Integer courseNumber;

    @Schema(description = "疗程数量")
    private Integer type;

}
